//
//  PywBaseApi.m
//  PywSdk
//
//  Created by Jade on 16/7/30.
//  Copyright © 2016年 zero. All rights reserved.
//

#import "PywBaseApi.h"

@implementation PywBaseApi
+ (instancetype)manager
{
    return [[[self class] alloc] init];
}

- (NSError *)errorWithCode:(NSInteger)code
{
    return [self createErrorWithDomain:@"" code:code];
}
- (NSError *)createErrorWithDomain:(NSString *)domain code:(NSInteger)code
{
    NSError *error = [NSError errorWithDomain:domain
                                         code:code
                                     userInfo:nil];
    return error;
}
@end
